<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <?php include_http_metas() ?>
    <?php include_metas() ?>
    <?php include_title() ?>
    <?php include_stylesheets() ?>
    <?php include_javascripts() ?>
    
  <script type="text/javascript">
        $(document).ready(function(){
            // $("#featured > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 10000, true);
            
            $("#main_nav ul li a").click(function() { 
                $(this).removeClass().addClass('selected');
                });
        
        });
    </script>


    <script type="text/javascript">
    tinyMCE.init({
            // General options
            mode : "textareas",
            theme : "advanced",
            entity_encoding : "raw",
            plugins : "autolink,lists,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
    
            // Theme options
            theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
            theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
            theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
            theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage",
            theme_advanced_toolbar_location : "top",
            theme_advanced_toolbar_align : "left",
            theme_advanced_statusbar_location : "bottom",
            theme_advanced_resizing : true,
    
            // Skin options
            skin : "o2k7",
            skin_variant : "silver",
    
            // Example content CSS (should be your site CSS)
            content_css : "css/example.css",
    
            // Drop lists for link/image/media/template dialogs
            template_external_list_url : "js/template_list.js",
            external_link_list_url : "js/link_list.js",
            external_image_list_url : "js/image_list.js",
            media_external_list_url : "js/media_list.js",
    
            // Replace values for the template plugin
            template_replace_values : {
                    username : "Some User",
                    staffid : "991234"
            }
    });
    </script>
     
    
    
    
  </head> 
  <body>
        <div id="header">   
               <div id="main_nav">
                    <ul>
                        <li><a href="<?php echo url_for('category/newartice') ?>"> <?php echo __('Trang chủ') ?> </a></li>
                        <li><a href="<?php echo url_for('category/newartice') ?>"><?php echo __('Tin tức') ?></a></li>
                        <li><a href="<?php echo url_for('category/product') ?>"><?php echo __('Sản phẩm') ?></a></li>                        
                        <li><a href="<?php echo url_for('category/service') ?>"><?php echo __('Dịch vụ') ?></a></li>
                        
                        <li><a href="<?php echo url_for('category/introduce') ?>"><?php echo __('Giới thiệu') ?></a></li>                        
                        <li><a href="<?php echo url_for('category/resource') ?>"><?php echo __('Tài nguyên') ?></a></li>
                        <li><a href="<?php echo url_for('category/notice') ?>"><?php echo __('Thông báo') ?></a></li>
                    </ul>
                </div><!--End main_nav -->
                 <div class="clr"></div> 
                <div id="subheader">  
                    <div class="block"> 
                        <?php //include_component('category', 'slideshow') ?> 
                        <img src="/images/i2.jpg"/>
                    </div>
                     
                </div><!--End subheader --> 
                
        </div><!--End header -->
        
        <div class="clr"></div> 
        
       
       
        <div id="container">    
            <div id="main">     
                <div id="main_show">
                    <?php echo $sf_content ?>
                </div><!--End main2 -->
                
                <div id="sidebar">
                    <?php 
                    
                        $cate = new BachkimCategory();
                        include_partial('artice/list', array('artice' => $cate->getWithArtice_param($sf_user->getAttribute('parent_id'))   ))
                    ?>
    
                </div>
                
            </div><!--End main -->            
        </div><!--End container -->
        
        <div class="clr"></div> 
        
        <div id="footer">
            <div id="footer1">
                <?php include_component('category', 'menufooter') ?>                                  
                
                <div class="clr"></div> 
                
                <div id="footer1_1">
                    <div id="copyright">
                         <p>© Copyright Bạch Kim 2013 . All Rights Reserved.  </p>                 
                    </div> 
                    
                    <div id="footer_nav">
                         <a href="<?php //echo url_for('category/newartice') ?>"> <?php echo __('Trang chủ') ?></a> | 
                         <a href="<?php //echo url_for('category/newartice') ?>"> <?php echo __('Liên hệ') ?></a>
                    </div>              
                </div>            
            </div>                       
                    
        </div><!--End footer -->       
  
  </body>
</html>